/* 
 * File:   RemoveStackMemento.cpp
 * Author: Gab'z
 * 
 * Created on 12 juin 2012, 20:17
 */

#include "RemoveStackMemento.h"
#include "../command/UndoableRedoableCommand.h"

namespace calculator {

    RemoveStackMemento::RemoveStackMemento(
            UndoableRedoableCommand* undoableRedoableCommand,
            const Stack* stack,
            const unsigned int stackIndex) :
    Memento(undoableRedoableCommand),
    _stack(stack),
    _stackIndex(stackIndex) {
    }

    RemoveStackMemento::RemoveStackMemento(const RemoveStackMemento& memento) :
    Memento(memento._undoableRedoableCommand),
    _stack(memento._stack),
    _stackIndex(memento._stackIndex) {
    }

    RemoveStackMemento::~RemoveStackMemento() {
        delete _stack;
    }
}